package com.atguigu.gulimall.product.service;

import com.atguigu.common.utils.PageUtils;
import com.atguigu.gulimall.product.entity.BrandEntity;
import com.baomidou.mybatisplus.extension.service.IService;
import com.atguigu.gulimall.product.entity.CategoryBrandRelationEntity;

import java.util.List;
import java.util.Map;

/**
 * 品牌分类关联
 *
 * @author dy
 * @email 1091330089@qq.com
 * @date 2022-08-11 11:06:25
 */
public interface CategoryBrandRelationService extends IService<CategoryBrandRelationEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void saveDetail(CategoryBrandRelationEntity categoryBrandRelation);

    //品牌修改， 分类品牌表 对应修改数据.
    void updateCascadeBrand(Long brandId, String name);

    //修改分类同时修改对应的 品牌分类的内容
    void updateCascadeCategory(Long catId, String name);

    //获取分类关联的品牌
    List<BrandEntity> categoryBrandRelationList(Long catId);

}

